package com.example.feignapi.client;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.Map;

/**
 * @Description
 * @Author 魏锴
 * @Date 2025/4/3
 */
@FeignClient(name = "itemService")
public interface ItemClient {
    @RequestMapping("/item/feign/recipe/map")
    Map<Integer, Integer> getItemRecipeMap(@RequestParam("version") int version);

    @RequestMapping("/item/feign/name/map")
    Map<Integer, String> getIdNameMap(@RequestParam("version") int version);
}
